export const api = {

  url: 'http://127.0.0.1:8000/v1',

  fastdfsurl: "http://61.144.226.134:8000/ga/xinghuo-apaas-fastdfsservice/fastdfsservice/fastdfs/singleUploadFile"

}


export const util = {
     
     /*
        获取客户端时间
      */
     getTime:() => {
        
        var date = new Date();
	    var seperator1 = "-";
	    var seperator2 = ":";
	    var month = date.getMonth() + 1;
	    var strDate = date.getDate();
	    if (month >= 1 && month <= 9) {
	        month = "0" + month;
	    }
	    if (strDate >= 0 && strDate <= 9) {
	        strDate = "0" + strDate;
	    }
	    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
	            + " " + date.getHours() + seperator2 + date.getMinutes()
	            + seperator2 + date.getSeconds();
	    return currentdate;
     },

     getWeek:() => {
     	var str = "";  
		var week = new Date().getDay();  
		if (week == 0) {  
		        str = "今天是星期日";  
		} else if (week == 1) {  
		        str = "今天是星期一";  
		} else if (week == 2) {  
		        str = "今天是星期二";  
		} else if (week == 3) {  
		        str = "今天是星期三";  
		} else if (week == 4) {  
		        str = "今天是星期四";  
		} else if (week == 5) {  
		        str = "今天是星期五";  
		} else if (week == 6) {  
		        str = "今天是星期六";  
		}  

		return str;
     }

}